class FindModel {
  int code;
  String message;
  Data data;

  FindModel({this.code, this.message, this.data});

  FindModel.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    message = json['message'];
    data = json['data'] != null ? new Data.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['message'] = this.message;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    return data;
  }
}

class Data {
  List<Items> items;
  int page;
  int count;
  int totalPages;
  int totalCount;
  bool first;
  bool last;

  Data(
      {this.items,
      this.page,
      this.count,
      this.totalPages,
      this.totalCount,
      this.first,
      this.last});

  Data.fromJson(Map<String, dynamic> json) {
    if (json['items'] != null) {
      items = new List<Items>();
      json['items'].forEach((v) {
        items.add(new Items.fromJson(v));
      });
    }
    page = json['page'];
    count = json['count'];
    totalPages = json['totalPages'];
    totalCount = json['totalCount'];
    first = json['first'];
    last = json['last'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.items != null) {
      data['items'] = this.items.map((v) => v.toJson()).toList();
    }
    data['page'] = this.page;
    data['count'] = this.count;
    data['totalPages'] = this.totalPages;
    data['totalCount'] = this.totalCount;
    data['first'] = this.first;
    data['last'] = this.last;
    return data;
  }
}

class Items {
  int albumId;
  String albumTitle;
  int videoCount;
  bool flow;
  List<VideoList> videoList;

  Items(
      {this.albumId,
      this.albumTitle,
      this.videoCount,
      this.flow,
      this.videoList});

  Items.fromJson(Map<String, dynamic> json) {
    albumId = json['albumId'];
    albumTitle = json['albumTitle'];
    videoCount = json['videoCount'];
    flow = json['flow'];
    if (json['videoList'] != null) {
      videoList = new List<VideoList>();
      json['videoList'].forEach((v) {
        videoList.add(new VideoList.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['albumId'] = this.albumId;
    data['albumTitle'] = this.albumTitle;
    data['videoCount'] = this.videoCount;
    data['flow'] = this.flow;
    if (this.videoList != null) {
      data['videoList'] = this.videoList.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class VideoList {
  int videoId;
  String title;
  String imgUrl;
  String updateText;
  bool del;

  VideoList({this.videoId, this.title, this.imgUrl, this.updateText, this.del});

  VideoList.fromJson(Map<String, dynamic> json) {
    videoId = json['videoId'];
    title = json['title'];
    imgUrl = json['imgUrl'];
    updateText = json['updateText'];
    del = json['del'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['videoId'] = this.videoId;
    data['title'] = this.title;
    data['imgUrl'] = this.imgUrl;
    data['updateText'] = this.updateText;
    data['del'] = this.del;
    return data;
  }
}
